import request from "@/utils/request";

/**
 * 买单
 */
export function scanPay(data) {
	return request.post("/user/scan/pay", data);
}

/**
 * @param {Object} data
 * 获取商家信息
 */
export function getStoresNameAndImg(data) {
	return request.get(`/yxSystemMerchantStore/getStoresNameAndImg/${data.shopId}`, {}, { login: false });
}

/**
 * @param {Object} data
 * 
 */
export function getPrizeByUid(data) {
	return request.get(`/user/getPrizeByUid`);
}